/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn;

/**
 * <p>Project: javaweb - Demo
 * <p>Powered by webrx On 2022-03-11 16:07:51
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo {
    public static void main(String[] args) {
        String path = "C:\\javaweb\\uploads\\target\\uploadsasdfsdf-2.0\\upload\\user\\202203\\a.jpg";
        System.out.println(path);
        System.out.println(path.replace(path.substring(path.indexOf("target"),path.lastIndexOf("upload")),"src\\main\\webapp\\"));
    }
}
